package com.jie.component.exception.enums;

import lombok.Getter;

/**
 * @author jie
 * @version 1.0 2025-02-10
 */
@Getter
public enum FrameError {
    ILLEGAL_ANNOTATION_PARAM_LOCK_TIME_OUT_STRATEGY("自定义锁超时策略方法参数不合法", 500),
    ILLEGAL_ACCESS_CUSTOM_LOCK_TIME_OUT_HANDLER("自定义锁超时策略方法非法访问", 500),
    FAIL_INVOKE_CUSTOM_LOCK_TIMEOUT_HANDLER("调用自定义超时策略方法失败", 500),
    BLOOM_FILTER_NOT_EXIST("布隆过滤器不存在", 500),
    PARAM_VALIDATION("参数校验发生错误", 500),
    STREAM_TO_STRING("字符流转字符串错误", 500),
    INIT_BLOOM_FILTER_ERROR("初始化布隆过滤器错误", 500);

    private final String msg;

    private final Integer code;

    FrameError(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
}
